home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / zkf102.zip / prep.txt < prev    next >
Text File  |  1995-01-04  |  2KB  |  34 lines

  1. The zk prep feature requires the pro version of zk.
  2.  
  3. The purpose of zk prep is to preprocess your source code before compiling
  4. it with you compiler.  There are two situations where you would want to
  5. do this.  You need to use zk prep when you are using your code to build
  6. a new version of zk.exe, as explained in link.txt.  Or, if you want to use
  7. the c++ extensions of zk in your compiled code, you can use zk prep for
  8. that.
  9.  
  10. To use zk prep, use prep.bat, giving it two arguments.  The name of your
  11. source code file is the first argument and the name of the file where the
  12. resulting preprocessed code should go is the 2nd argument.  Both arguments
  13. must have the filename extension, and if you want either to be in other
  14. than the current directory, the directory has to be part of the argument.
  15. Keep in mind that you can't use name.cpp as the same name for both.  If
  16. your original source code uses zk extensions, you might want to name it
  17. name.zk, to indicate that, and name the output file name.cpp, to indicate
  18. that the result is c++ without extensions.
  19.  
  20. After the two filename arguments discussed above, there is a 3rd, optional
  21. argument to prep.bat, which you can normally omit.  You can use it when
  22. you aren't building a new version of zk.exe, but just using zk extensions
  23. in your own compiled code.  Use the word "nonames" as the third argument.
  24. It tells prep you aren't compiling for a new version of zk.exe, so it can
  25. omit the extra names it puts in the output which allow zk to call your
  26. compiled functions from your interpreted code.  This will prevent prep
  27. from increasing the size of your code, but will also prevent your
  28. interpreted code from being able to call your compiled code.
  29.  
  30. See link.txt and linkex.bat for more details on building a new version of
  31. zk.exe to call your compiled code from your interpreted code.  Or see
  32. extend.txt for more details on the c++ extensions of zk.
  33.  
  34.